<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: HaRiA
  Date: 02.09.2014
  Time: 13:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>

<form name="createForm" action="create" method="POST">


    Project:  <select name="projectId">

    <c:forEach items="${projects}" var = "project" >
        <option value="${project.projectId}">${project.name}</option>
    </c:forEach>
    <br/> <!--a href = "../projects/new">New project </a> <br/-->
    Capital: <input type="text" name="moneyNeeded"> $<br/>
    Period: <input type="text" name="period">month<br/>

    </select>



    <input name="create" type="submit" value="Create" />

</form>

<form action="/projects/new" method="get"  >
    <input  value="New project" type="submit">
</form>
</body>
</html>
